const path = require('path');
const VueLoaderPlugin = require('vue-loader/lib/plugin');

module.exports = {
  entry: path.join(__dirname,'src/index.js'),
  output: {
    path: path.join(__dirname, 'dist'),
    filename: 'bundle.js'
  },
  module: {
    rules: [
      { 
          test: /\.vue$/, 
          use:[
            {
                loader: 'vue-loader'
            },
            {
                loader: 'style-loader'
            },
            {
                loader: 'css-loader'
            }
            
          ]
    }
    ]
  },
  plugins: [
    // make sure to include the plugin for the magic
    new VueLoaderPlugin()
],
};